Καλησπέρα σας,
Έχω φτιάξει ένα ASP.NET website εντός του οποίου υπάρχουν 2 WCF web services (.svc). Έστω Α και Β. Μπορώ να δημιουργήσω clients για να τα κάνουν consume όσο το site βρίσκεται στο localhost. Μια χαρά ως εδώ. Όταν ανεβάσω το site στον server μου, αν πληκτρολογήσω τη διεύθυνση του κάθε service στον browser (http://myserver.gr/A.svc, http://myserver.gr/B.svc), όλα είναι οκ.
Όταν πάω να καταναλώσω το Α (δίνοντας το URL προς τον σέρβερ), δουλεύει. Όταν πάω να κάνω το ίδιο πράγμα (add service reference) για το Β, τότε εμφανίζεται το παρακάτω error:
The document at the url http://myserver.gr/B.svc was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.
- Report from 'http://myserver.gr/B.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.
- Report from 'DISCO Document' is 'There was an error downloading 'http://win-4y3p8aioi39/B.svc?disco'.'.
- The remote name could not be resolved: 'win-4y3p8aioi39'
- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.
Metadata contains a reference that cannot be resolved: 'http://myserver.gr/B.svc'.
Metadata contains a reference that cannot be resolved: 'http://myserver.gr/B.svc'.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Ενημερώστε με αν χρειάζεστε κάποια επιπλέον πληροφορία. Ευχαριστώ εκ των προτέρων.
Συγχώρα με που δεν καταλαβαίνω τι λένε τα κομπιούτερς κι οι αριθμοί...